-module(edrp_acceptor_sup).

-behaviour(supervisor).

-export([start_link/1]).

-export([init/1]).

start_link(Callback) ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, Callback).

init(Callback) ->
    {ok, {{simple_one_for_one, 10, 10},
          [{edrp_acceptor, {edrp_acceptor, start_link, [Callback]},
            transient, brutal_kill, worker, [edrp_acceptor]}]}}.
